﻿using GameFramework.Fsm;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


/// <summary>
/// 静态图待机画面
/// </summary>
public class GuessState_idle : GuessStateBase<GuessControl>
{

    protected override void OnEnter(IFsm<GuessControl> fsm)
    {
        base.OnEnter(fsm);

        fsm.Owner.StaticImage.gameObject.SetActive( true);
    }



    protected override void OnLeave(IFsm<GuessControl> fsm, bool isShutdown)
    {
        base.OnLeave(fsm, isShutdown);

        fsm.Owner.StaticImage.gameObject.SetActive(false);
    }

    protected override void OnKeyDown(KeyCode obj)
    {

        if (obj == KeyCode.Return || obj == KeyCode.KeypadEnter)
        {
            ChangeState<GuessState_UpdateIdle>(_fsm);
        }
    }


}
